import math
import time
start_time = time.time()
s = 100000
triangleNumbers = 0 
for x in range(1,s):
    divisors = 0
    triangleNumbers = triangleNumbers + x
    for n in range(1,int(math.sqrt(triangleNumbers))+1):
        if triangleNumbers % n == 0:
            divisors += 2
    if divisors > 500:
        print(triangleNumbers)
        print(divisors)
        break
print(time.time() - start_time)



# print(divisors)